package com.gxa.clientproduct.service.impl;

import com.gxa.clientproduct.mapper.SignMapper;
import com.gxa.clientproduct.pojo.Sign;
import com.gxa.clientproduct.service.SignService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: fenglin
 * @Date:2020/11/17 8:44
 * @Version 1.0
 */
@Service("signService")
public class SignServiceImpl implements SignService {

    @Resource
    SignMapper signMapper;
    @Override
    public int updateSign(Sign sign) {
        return signMapper.updateByPrimaryKeySelective(sign);
    }

    @Override
    public Sign findAll() {
        Sign sign = new Sign();
        sign.setId(1);
        return signMapper.selectOne(sign);
    }
}
